<?php

class discussion_Model extends GlobalModel {
	public function getReplys ($discussion_id) {
		$replys = array();
		$sql = "SELECT * FROM `xine_replys` WHERE `discussion_id`='$discussion_id' AND `active`='1'";
		$res = mysql_query($sql);
		
		while($reply=mysql_fetch_assoc($res)) {
			$replys[] = $reply;
		}
		
		return $replys;
	}
}